#ifndef _LA_H_
#define _LA_H_

#include "global.h"
#include "tool.h"

#define MAX_LINE 1024

typedef struct ReservedWord {
    char *word;
    TokenType type;
} ReservedWord;

extern int row;                             // Row number.
extern int col;                             // Column number.
extern TokenType current_token;             // Current token type.
extern char token_buf[];                    // Current token string.

extern void read_token();                   // Read one token.
extern void put_back();                     // Put back the previously read token into token stream within the same row.
extern void skip(char *skp_str);            // Skip the stream pointer to one of chars within skip_str
extern void move_forward();                 // col++.

#endif
